﻿using System.Windows;
using Microsoft.Wpf.Samples.BaseLibrary;

namespace Microsoft.Wpf.Samples.CustomUIOne
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            this.Loaded += (s, e) =>
            {
                GlassEffectHelper.EnableGlassEffect(this);
            };
        }

        private void CloseButton_Click(object sender, RoutedEventArgs e)
        {
            // Exit Application
            Application.Current.Shutdown();
        }

        private void LoginButton_Click(object sender, RoutedEventArgs e)
        {
            // Login in to your system
            Application.Current.Shutdown();
        }
    }
}
